Skip to content

Conversation

louneskmt
Copy link

Improved AsyncBatcher typings by making the batch function's return type a type parameter. The related properties and functions are now aware of the result type (lastResult, onSuccess). This changes a bit where to put the item type, initially as a type parameter (asyncBatcher<number>((items) => ...) to the function arguments directly (asyncBatcher((items: number[]) => ...).

Copy link

changeset-bot bot commented Sep 8, 2025

🦋 Changeset detected

Latest commit: d740d9f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@tanstack/pacer-devtools Patch
@tanstack/react-pacer Patch
@tanstack/solid-pacer Patch
@tanstack/pacer Patch
@tanstack/react-pacer-devtools Patch
@tanstack/solid-pacer-devtools Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@KevinVandy
Copy link
Member

I'm considering this PR and how to make the return types consistent across all async utils after #54 is done

@louneskmt
Copy link
Author

Let me know if I can be of any further help! Once we agree on how to do it, I can take care of the implementation across all async utils, if you want to focus on some other stuff 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants